#include "const.h"

void wildcard(var_t v, const char *pattern) {
	const char *filepattern;
	char dirpart[256];

	filepattern = s_getdir(dirpart, sizeof(dirpart), pattern);
	if (dirpart[0]==0)
		strcpy(dirpart, "./");

	multiwildcard(v, dirpart, 1, &filepattern);
}
